package com.hyf.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages = {"com.hyf"})// 通过swagger 访问有指定的访问路径  http://localhost:8001/swagger-ui.html
@EnableDiscoveryClient //nacos注册
public class ossApp {

    public static void main(String[] args) {
        SpringApplication.run(ossApp.class, args);
    }
}
